package com.example.demo.web;

import com.example.demo.domain.User;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Buynow on 2017/8/22.
 */
@RestController
public class DemoRestController {

    @RequestMapping(value = "user", method = RequestMethod.PUT)
    public String user(@RequestBody User user) {
        return "user";
    }
}
